var data={
    map:[
        [
            1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
        ],
        [
            1,1,1,1,1,1,1,
            1,0,0,0,0,0,1,
            1,0,0,0,0,0,1,
            1,0,0,0,0,0,1,
            1,0,0,0,0,0,1,
            1,0,0,0,0,0,1,
            1,1,1,1,1,1,1
        ],
        [
            1,1,1,1,1,1,1,1,1,1,
            1,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,1,0,0,1,
            1,1,0,0,0,1,1,0,0,1,
            1,1,0,0,0,0,0,0,0,1,
            1,1,0,0,0,1,1,0,0,1,
            1,1,1,1,1,1,1,1,1,1
        ],
        [
            1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
            1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,1,
            1,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
            1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
            1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,
            2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1
        ]
    ],
    mapInfo:[
        {w:20,h:20},
        {w:7,h:7},
        {w:10,h:10},
        {w:20,h:20}
    ],
    source:[
        [
            "img/bg/bg1.jpg",//bg
            "img/block/block1.png", //stoge
            "img/map/map1.png", //move
            "img/bgOk.png", //end
            "img/bgUser.png",//user
            "img/caseBox.png" //box
        ],
        [
            "img/bg.jpg",//bg
            "img/bg_01.jpg", //stoge
            "img/bg_02.png", //move
            "img/bgOk.png", //end
            "img/bgUser.png",//user
            "img/caseBox.png" //box
        ],
        [
            "img/bg/bg2.jpg",//bg
            "img/block/block1.png", //stoge
            "img/map/map1.png", //move
            "img/bgOk.png", //end
            "img/bgUser.png",//user
            "img/caseBox.png" //box
        ],
        [
            "img/bg/bg1.jpg",//bg
            "img/block/block2.jpg", //stoge
            "img/map/map2.jpg", //move
            "img/bgOk.png", //end
            "img/bgUser.png",//user
            "img/caseBox.png" //box
        ]
    ],
    box:[
        [
            {
                x:2,
                y:5
            },
            {
                x:7,
                y:2
            }
        ],
        [
            {
                x:2,
                y:2
            },
            {
                x:2,
                y:3
            }
        ],
        [
            {
                x:2,
                y:2
            },
            {
                x:2,
                y:3
            },
            {
                x:2,
                y:4
            },
            {
                x:2,
                y:5
            }
        ],
        [
            {
                x:2,
                y:5
            },
            {
                x:3,
                y:6
            },
            {
                x:4,
                y:7
            },
            {
                x:5,
                y:8
            },
            {
                x:7,
                y:2
            },
            {
                x:8,
                y:3
            },
            {
                x:9,
                y:4
            },
            {
                x:10,
                y:5
            }
        ]
    ],
    end:[
        [
            {
                x:11,
                y:10
            },
            {
                x:11,
                y:11
            }
        ],
        [
            {
                x:4,
                y:1
            },
            {
                x:5,
                y:1
            }
        ],
        [
            {
                x:4,
                y:1
            },
            {
                x:5,
                y:1
            },
            {
                x:4,
                y:3
            },
            {
                x:5,
                y:3
            }
        ],
        [
            {
                x:11,
                y:10
            },
            {
                x:12,
                y:10
            },
            {
                x:13,
                y:10
            },
            {
                x:14,
                y:10
            },
            {
                x:11,
                y:11
            },
            {
                x:12,
                y:11
            },
            {
                x:13,
                y:11
            },
            {
                x:14,
                y:11
            }
        ]
    ],
    user:[
        {
            x:5,
            y:1
        },
        {
            x:5,
            y:5
        },
        {
            x:5,
            y:5
        },
        {
            x:5,
            y:5
        }
    ]
};